﻿@{
    ViewBag.PageList = @Html.BreadCrumb().OrderByDescending(p => p.Id);
}
<ul class="contentHeaderNav">
    <li><a href="/">@("Home".Label())</a></li><span>></span>
    @if (ViewBag.Pagelist != null)
    {
        foreach (var item in ViewBag.PageList as IEnumerable<Century.Model.CMS.SitePage>)
        {
        <li><a href="@item.LocalName">@item.Title</a> </li> 
        <span>&gt;</span> 
        }
    }
    <li><a class="contentHeaderNavActive" href="@Html.CurrentPage().Name">@Html.CurrentPage().Title</a></li>
</ul>
@if (TempData["ExternalPageHeader"] == null)
{    
    <h1>@Html.CurrentPage().Title</h1>
}
else
{    
    <h1>@TempData["ExternalPageHeader"].ToString()</h1>
}
